package com.example.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2017/9/20 0020.
 */
@Controller
public class ErrorController {
   @GetMapping("/400")
   public String error1(){
       return "/error";
   }
    @GetMapping("/404")
    public String error2(){
        return "/error";
    }
    @GetMapping("/500")
    public String error3(){
        return "/error";
    }
}
